<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>在此处插入标题</title>
</head>
<body>
<jsp:include page="teacher_head.jsp"></jsp:include>
<div class="container">
		<div class="row">
			<div class="col-md-offset-1 col-md-10">
				<div class="panel panel-info">
					<div class="panel-heading">
						<h3 class="panel-title">
							<span>当前考试: <font color='red'><%=session.getAttribute("studentinfo")%></font></span>
						</h3>
					</div>
					<div class="panel-body">
						<form class="form-inline" role="form" action="../TeacherAddStudent?id=2" method="post">
							<div class="form-group">
								<input type="text" class="form-control" placeholder="学号*" name="student_id"> 
								<input type="text" class="form-control" placeholder="姓名*" name="student_name"> 
								<input type="text" class="form-control" placeholder="班级*" name="student_class"> 
								<input type="submit" class="btn btn-info" value="添加" />
							</div>
						</form>
						<table class="table table-bordered">
						</table>
					</div>
				</div>
			</div>
		</div>
		
		<div class="row">
			<div class="col-md-offset-1 col-md-10">
				<div class="panel panel-info">
					<div class="panel-heading">
						<h3 class="panel-title">
							<span class="glyphicon glyphicon-th-list"></span>学生信息
						</h3>
					</div>
					<div class="panel-body">
						<table class="table table-bordered">
							<tr>
								<th>学号</th>
								<th>姓名</th>
								<th>班级</th>
							</tr>
							<%
								StringBuilder sb = (StringBuilder) session.getAttribute("info");
								out.print(sb);
							%>
						</table>
						<ul class="pagination pagination-lg">
							<li><a href="../Page?page=<%=session.getAttribute("current1")%>">&laquo;</a></li>
							<%=(String) session.getAttribute("bar")%>
							<li><a href="../Page?page=<%=session.getAttribute("current2")%>">&raquo;</a></li>
						</ul>
					</div>
				</div>
			</div>
		</div>
</div>
</body>
</html>